package com.autumn.mybatis.criterion.impl;

import java.util.ArrayList;
import java.util.List;

import com.autumn.mybatis.criterion.IQuerySection;
import com.autumn.mybatis.criterion.LockModeEnum;
import com.autumn.mybatis.criterion.clauses.OrderClause;
import com.autumn.mybatis.criterion.clauses.PageClause;

/**
 * 查询条件
 * 
 * @author 老码农
 *
 *         2017-10-26 12:56:00
 */
public class QuerySectionImpl extends CriteriaSectionImpl implements IQuerySection {

	/**
	 * 获取排序集合
	 * 
	 * @return
	 */
	private final List<OrderClause> orderClauses;

	/**
	 * 分页
	 */
	private final PageClause pageClause;

	public QuerySectionImpl(LockModeEnum lockMode) {
		super(lockMode);
		this.pageClause = new PageClause();
		this.orderClauses = new ArrayList<>();
	}

	@Override
	public PageClause getPageClause() {
		return pageClause;
	}

	@Override
	public List<OrderClause> getOrderClauses() {
		return orderClauses;
	}

}
